package com.github.rpc4j.util;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 
 * @author yuncheng
 *
 */
public class IdGenerator {

	private static  AtomicLong sequence = new AtomicLong(1);

	public static long generateId() {
		return sequence.getAndIncrement();
	}
}